package com.meiyu.live.net;


import android.util.Log;

import com.meiyu.live.BaseApplication;
import com.meiyu.live.comm.Constant;
import com.meiyu.live.net.param.BaseBodyParams;
import com.meiyu.live.util.Base64;
import com.meiyu.live.util.DesUtil;

public class FileReqPackage {

    private BaseBodyParams body;

    public FileReqPackage(BaseBodyParams body) {
        try {
            Log.e("request json:", BaseApplication.mGson.toJson(body));
//            this.hash = Base64.getBase64((DesUtil.encode(BaseApplication.mGson.toJson(body), Constant.DECKEY)));
            this.body = body;
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public String packetParam() {
        try {
            return Base64.getBase64((DesUtil.encode(BaseApplication.mGson.toJson(body), Constant.DECKEY)));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "error";
    }



}
